package com.mit.wx.service.impl;

import com.mit.wx.dao.BaseDao;
import com.mit.wx.dao.SourceMessageDao;
import com.mit.wx.entity.WxSourceMessage;
import com.mit.wx.service.WxSourceMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

/**
 * 2018/10/9 Create by 郭文梁
 * WxSourceMessageServiceImpl
 * 微信消息服务类实现
 *
 * @author 郭文梁
 * @date 2018/10/9
 */
@Service
public class WxSourceMessageServiceImpl extends BaseServiceImpl<WxSourceMessage> implements WxSourceMessageService {
    private final SourceMessageDao sourceMessageDao;

    @Autowired
    public WxSourceMessageServiceImpl(SourceMessageDao sourceMessageDao) {
        this.sourceMessageDao = sourceMessageDao;
    }

    @Override
    public BaseDao<WxSourceMessage> getRepository() {
        return sourceMessageDao;
    }
}
